{% extends "safeinside/base.html" %}
{% block title%}События по типам{% endblock %}

{% block content %}
<h1>Количество событий объектов по их типам</h1>
{% if not standalone %}
<a href="/objects_count_events_by_type/normal_standalone">Версия для операторов</a>
{% endif %}

{% include "safeinside/event_types.html" %}

<table class="table table-stripped table-bordered" data-sort-name="pcnid" data-toggle="table">
 <thead>
  <tr>
   <th data-field="pcnid" data-sortable="true">ID</th>
   <th data-field="msid" data-sortable="true">MS number</th>
   <th data-field="status" data-sortable="true">Events</th>
  </tr>
 </thead>
{% for o in objs.values %}
 <tr>
  <td>{{ o.targetid }} </td>
  <td>{{ o.msid }}</td>
   {% for etype,ecount in o.counts.items %}
    <td>Event-{{ etype }}: {{ ecount }}</td>
   {% endfor %}
 </tr>
{% endfor %}
</table>
<hr>


{% endblock %}
